<?php
class Ecore_Rewrite_Event {	
	public static function slug($intId, $strName) {
		$strName	= trim($strName);
		$strName 	= Ecore_Function::UTF8Deaccent($strName);        
		return Ecore_Function::convertNoVn($strName) . '-EVE' . Ecore_Function::dec2Hex($intId) . '.html';
	}
	public static function link($intId, $strName) {
		return HOST_FRONTEND . Ecore_Rewrite_Event::slug($intId, $strName);
	}
}
